#define _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"

int main()
{
	Stack sk;
	StackInit(&sk);
	int i;
	for (i = 1; i <= 10; i++)
	{
		StackPush(&sk, i);
	}

	int count = StackSize(&sk);
	printf("%d\n", count);

	while(!StackEmpty(&sk))
	{
		int st = StackTop(&sk);
		printf("%d ", st);
		StackPop(&sk);
	}

	StackDestroy(&sk);
	return 0;
}

